package com.qwz.example;
/**
* @Description: 具体算法实现，为老客户计算应报的价格
* @Package com.qwz.example.OldCustomerStrategy
* @author Qiuwuzhi
* @date 2019/12/25 13:44
* @version V1.0
*/
public class OldCustomerStrategy implements Strategy {
    public double calcPrice(double goodsPrice) {
        System.out.println("对于老客户，统一折扣5%");
        return goodsPrice*(1-0.05);
    }
}
